package com.yuan.test_jpa2.po;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName: User
 * @Description: TODO
 * @Author MrYuan
 * @Date: 2021/2/4 17:44
 * @Version 1.0
 */
@Entity(name = "t_user")
@Data
public class User {
    @Id
    private Integer id;
    @Column
    private int age;
    @Column
    private Date createTime;
    @Column
    private String lastName;
    @Column
    private Date date;
}